/*
 * @Descripttion: 组件业务名
 * @version:
 * @Author: lhl
 * @Date: 2024-01-17 16:04:07
 * @LastEditors: lhl
 * @LastEditTime: 2024-01-18 09:40:49
 */
// api/user.js
import { LoginParams } from './type'

import service from '~utils/request'

// get请求示例 - 获取验证码
export function getCaptcha(params) {
  const stemp = new Date().getTime()
  return service({
    url: `/sys/randomImage/${stemp}`,
    method: 'get',
    // isLoading: false,
    params
  })
}

// post请求示例
export function userLogin(data: LoginParams) {
  return service({
    url: '/shop/add',
    method: 'post',
    data
  })
}
